* Spatial Mismatch estimation, by Mark Kutzbach
set more off
set linesize 140

* used to run partial correlations
do pcorrmat.do

clear
set mem 1g

set matsize 2000

* paths
include "path.do"
display "Analysis for Vintage name: ${vint}"

* set version number and run name
local vnum="58"
local vers="run_summary"

* log starts here
log using mismatch_`vnum'_`vers'.smcl, replace
********************** Load Data ********************

* load csv produced from sas processing
cd "$progdir/$vint"
insheet using "$datadir/$vint/lostjob_analysis.csv", comma

* retain only those who were actually displaced
keep if displaced_ever_nosp_25==1
describe
********************** Prepare Data ********************

do mismatch_`vnum'_setup.do
********************** Summarize Data ********************

do mismatch_`vnum'_summary.do

describe
***************************************************************
* end of results
log close

* translate results
translate mismatch_`vnum'_`vers'.smcl mismatch_`vnum'_`vers'.txt, replace

